import request from "../../http";

const categoryApi = {
  async getAllCategory() {
    return request({
      url: "/pc/article/category/son",
      method: "get"
    });
  },
  // 获取对应供应商下的分类
  async getSupplierCategory() {
    return request({
      url: "/api/category/supplier",
      method: "get"
    });
  }
};

export default categoryApi;
